package com.jia.coupon.controller;


import com.jia.commons.sku.SkuReduction;
import com.jia.coupon.service.SkuFullReductionService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * 商品满减信息(SkuFullReduction)表控制层
 *
 * @author makejava
 * @since 2025-07-28 17:36:23
 */
@RestController
@RequestMapping("sku/full/reduction")
public class SkuFullReductionController {

    /**
     * 服务对象
     */
    @Resource
    private SkuFullReductionService skuFullReductionService;


    @PostMapping("/insert")
    public String saveSkuReduction(@RequestBody SkuReduction skuReduction) {
        skuFullReductionService.saveSkuReduction(skuReduction);
        return "success";
    }
}

